package com.linkhub.oms.dao.mpservice;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linkhub.oms.entity.ShopShippingEntity;
import com.linkhub.oms.entity.resulttype.ShopShippingChannelPriorityEntity;

import java.util.List;
import java.util.Set;

/**
 * @author Jaycle
 * @version 1.0.0
 * @Description IChannelPriorityService.java
 * @createTime 2024/05/03 15:24
 */
public interface IChannelPriorityService extends IService<ShopShippingEntity> {
    List<ShopShippingChannelPriorityEntity> queryShopByUserID(String userID);

    void deleteChannelPriorityByShopIDAndShippingName(String sysShopId, String shippingName);

    void insertChannelPriorityByShopIDAndShippingName(String sysShopId, String shippingName, String channelCode, Integer priority);


    /**
     * 保存运费名称接口
     *
     * @param userId        userId
     * @param sysShopId     sysShopId
     * @param shippingNames shippingNames
     */
    void saveShippingName(String userId, String sysShopId, Set<String> shippingNames);
}
